Date and time objects may be categorized as "aware" or "naive" depending on whether or not they include time zone information. With sufficient knowledge of applicable algorithmic and political time adjustments, such as time zone and da
datetime 模块只提供了一个具体的 tzinfo 类,即 timezone 类。 timezone 类可以表示与 UTC 有固定偏移量的简单时区,例如 UTC 本身或北美的 EST 和 EDT 时区。 支持更深层次细节的时区取决于应用程序。 世界各地的时间调整规则更多是政治性的而非理性的,而且经常变化,除了 UTC 之外,没有适用于每个应用的标准。 在 date 或 datetime 对象中允许的最小年份数。 MINYEAR 是 1。 在 date 或 datetime 对象中允许的最大年份数。 M